|
Author |
Thread Statistics | Show CCP posts - 2 post(s) |

Cryten Jones
Chill Cabal The Serenity Initiative
109
|
Posted - 2014.05.08 10:47:00 -
[1] - Quote
**Warning Stupid Question""
I have spent a load of time this year teaching myself C# and had been doing ok thus far trying to create my own industry app as a means to lean the language, so in short I have worked a load out but am still a noob.
I have created some code that does a very basic job of pulling info from the API but have decided to use this far superior library for the task so that I can focus on the actual task at hand.
Could some kind person explain to me how I can add Evelib to my project? when I try and add existing project and add in each part of the Evelib solution I get a load of namespace reference errors so I must be doing it wrong.
All I want access to is EveCentral and the ability to fetch from the authenticated API (eg assets, wallets etc)
Thanks in advance.
|

Cryten Jones
Chill Cabal The Serenity Initiative
109
|
Posted - 2014.05.08 12:07:00 -
[2] - Quote
Great, thanks! that cleared up the errors... still having issues getting the using eZet.EveLib.Modules to work but again I may be missing somehting |

Cryten Jones
Chill Cabal The Serenity Initiative
109
|
Posted - 2014.05.08 12:20:00 -
[3] - Quote
Cryten Jones wrote:Great, thanks! that cleared up the errors... still having issues getting the using eZet.EveLib.Modules to work but again I may be missing somehting
Never mind, worked it out, thanks |

Cryten Jones
Chill Cabal The Serenity Initiative
109
|
Posted - 2014.05.08 12:20:00 -
[4] - Quote
Icahmura Hasaki wrote:You're not entirely clear on what isn't working, could you be more specific? eZet.EveLib.Modules is just a namespace. I do however recognize that the library isn't distributed in a very user-friendly manner at the moment, though I'm not sure what would be the best way to distribute it either.
edit: Oh, I misread. You need to add EveLib.EveCentral and/or EveLib.EveOnline as a reference in the project you want to use it in, the same way you did with Core.
LOL got there at the same time :-)
|

Cryten Jones
Chill Cabal The Serenity Initiative
109
|
Posted - 2014.05.08 12:26:00 -
[5] - Quote
On a side note:
When I request something from the API, lets say the asset list for a character. What is the return format?
On the project I did myself I processed the API XML into a datatable and returned that.. what is the return format in and what would be the best method for loading that into a table ?
Thanks |

Cryten Jones
Chill Cabal The Serenity Initiative
109
|
Posted - 2014.05.08 12:53:00 -
[6] - Quote
You are already out of my knowledge here..
I was hoping that I could call character.assetslist(keyData) and get the data back but I can't even work out what the options for T let alone data models etc :-)
|

Cryten Jones
Chill Cabal The Serenity Initiative
109
|
Posted - 2014.05.08 13:22:00 -
[7] - Quote
That's done it! I could not work out the link between the key object and the character object where all the methods live :-)
I am doing most of my data heavy lifting on the SQL side as I know this so your library is all about raw data into database tables where it can be processed with stored procedures.
For multiple accounts should I be creating a new key / char pair for each specifically of is there a neat way to loop though reusing the same objects by just modifying the values?
I was thinking key.vcode = 1234 would allow me to reset the vcode so something new but it seems to be only a get option
Thanks for all the help |

Cryten Jones
Chill Cabal The Serenity Initiative
109
|
Posted - 2014.05.08 13:37:00 -
[8] - Quote
So if I am pulling a list of chars with their key data from the database and then looping though the x number I have .. do you have any advice on how to programatically create x number of new key objects?
Totally understand if you have had enough at this point :-)
|

Cryten Jones
Chill Cabal The Serenity Initiative
109
|
Posted - 2014.05.08 14:35:00 -
[9] - Quote
This is for personal use on 4 toons over 4 accounts so it should be light.. I hope...
I am trying to do a foreach(AssetsList.Asset item in assets) where assets is my EveApiResponse[AssetList]
This is saying that your type does not have a getEnumerator so I guess that's a no show.. how else can I loop thought the data ?
edit: eg. I am going to get an asset list for a specific character not looping though for the characters |

Cryten Jones
Chill Cabal The Serenity Initiative
109
|
Posted - 2014.05.08 14:57:00 -
[10] - Quote
So if I don't care about WHERE an item is but only how many I own and other things like singleton status etc will that get me everything or do I HAVE to itterate though
Are you a container > Yes> OK what do you have in you ?
All I am trying to get to is a dataTable that lists all the things that I own across all the characters. |
|

Cryten Jones
Chill Cabal The Serenity Initiative
109
|
Posted - 2014.05.08 15:16:00 -
[11] - Quote
All I did was to read the API return into an IXMLDom and then just ask for each [row] element disregarding the [rowset] so getting a flat list
|

Cryten Jones
Chill Cabal The Serenity Initiative
109
|
Posted - 2014.05.08 17:46:00 -
[12] - Quote
Cool, will have a play!
Do I just download the 1.2 zip file again? never understood git :-)
|

Cryten Jones
Chill Cabal The Serenity Initiative
109
|
Posted - 2014.05.08 17:50:00 -
[13] - Quote
Also, on a totally new topic...
I want to have reasonably up to date prices in my app, and am planning a scheduled pull for what is effectively everything. This is because I then use this to generate a regular build price calculation for everything.
I have created an eve central class of my own that build multi item url's so that I am doing 10 * 90 item calls rather than 900 single item calls..
How what I don't know is:-
a: have a wasted my time again and you already do this b: am I going to get the ban hammer :-)
I do make sure that I only check for items that exist & have a market group & are published so I think I follow the rules but I would love to know your view!
|

Cryten Jones
Chill Cabal The Serenity Initiative
109
|
Posted - 2014.05.08 21:28:00 -
[14] - Quote
Thanks for all the help, I'll leave you in peace for now :-)
|
|
|
|